package cn.anlucky.apiadmin.controller;

import cn.anlucky.apiadmin.vo.R;
import cn.dev33.satoken.stp.StpUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/web/config")
public class WebConfigController {


    @GetMapping("/getTokenName")
    public R getTokenName(){
        String tokenName = StpUtil.getTokenName();
        return R.success(tokenName);
    }


}
